<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>Movie Manager</title>
    <%= stylesheet_link_tag "../javascripts/ext/resources/css/ext-all.css" %>
    <%= stylesheet_link_tag "/stylesheets/images.css" %>

    <%= javascript_include_tag "ext/adapter/ext/ext-base.js" %>
    <%= javascript_include_tag "ext/ext-all.js" %>
    <%= javascript_include_tag "ext/src/locale/ext-lang-zh_CN.js" %>
    <script type="text/javascript">
      var today = new Date().clearTime(true);
      var year = today.getFullYear();
      var todayTime = today.getTime();
      var yesterday = today.add('d', -1);//.getTime();
      var tomorrow = today.add('d', 1).getDaysInMonth();//.getTime();
      var weekDays = today.add('d', 6).getTime();
      var lastWeekDays = today.add('d', -6).getTime();

      alert("today:"+today+",\nyear:"+year+",\ntodayTime:"+todayTime+",\nyesterday:"+yesterday+",\ntomorrow:"+tomorrow+",\nweekDays:"+weekDays+",\nlastWeekDays:"+lastWeekDays);
     
    </script>
  </head>
  <body>
  </body>
</html>
